package engine.systems.render.particle
{
	import ash.core.Component;
	
	import org.flintparticles.twoD.emitters.Emitter2D;
	
	public class Particle extends Component
	{
		internal var _emitter:Emitter2D;
		
		public var remove:Boolean = false;
		
		public function Particle(emitter:Emitter2D)
		{
			this._emitter = emitter;
		}
		
		public final function get emitter():Emitter2D { return this._emitter; }
		
		public final function start():void { this._emitter.counter.resume(); }
		
		public final function stop():void { this._emitter.counter.stop(); }
		
		override public function destroy():void
		{
			this._emitter = null;
		}
	}
}